package org.brisling.medical.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.impl.BaseDomainExcludeId;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * <p>
 * Title: MedicalInpatient
 * </p>
 * <p>
 * Description:住院信息实体类
 * </p>
 * <p>
 * Company: 长沙东勤信息科技发展有限公司
 * </p>
 * 
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2016年7月25日 上午11:49:00
 */
@Entity
@Table(name = ConstSysParam.MODULE_INPATIENT)
public class MedicalInpatient extends BaseDomainExcludeId implements BaseDomainInf {

	/*
	 * 主键
	 */
	@Id
	@Column
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "inpatientGenerator")
	@TableGenerator(name = "inpatientGenerator", table = "sysman_generation_key", pkColumnValue = ConstSysParam.MODULE_INPATIENT, pkColumnName = "primary_key", valueColumnName = "key_value", allocationSize = 1)
	private Long id;

	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}

	// 医生编码
	private String doct_code;
	private String doct_name;
	// 医生部门编码
	private String doct_depart_code;

	private String doct_depart_name;

	private String f_dep;

	private String f_dep_cod;

	private String hospital_code;

	private String hospital_name;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date inhzospitalat;

	private String inpatient_no;

	private String inpatient_type;

	private String is_comment;

	private String is_death;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date outhospitalat;
	// 患者出生日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date patient_birth;
	// 记录编码
	private String patient_id;

	// 患者住院号码(不唯一)
	private String zyhm;

	private String patient_name;
	// 患者院内编码
	private String patient_no;

	private String patient_sex;

	// 患者床号
	private String patient_ch;

	private String prescribeat;

	// 住院满意度评价id
	@Transient
	private Long evaluate_id;

	public String getDoct_code() {
		return doct_code;
	}

	public void setDoct_code(String doct_code) {
		this.doct_code = doct_code;
	}

	public String getDoct_name() {
		return doct_name;
	}

	public void setDoct_name(String doct_name) {
		this.doct_name = doct_name;
	}

	public String getDoct_depart_code() {
		return doct_depart_code;
	}

	public void setDoct_depart_code(String doct_depart_code) {
		this.doct_depart_code = doct_depart_code;
	}

	public String getDoct_depart_name() {
		return doct_depart_name;
	}

	public void setDoct_depart_name(String doct_depart_name) {
		this.doct_depart_name = doct_depart_name;
	}

	public String getF_dep() {
		return f_dep;
	}

	public void setF_dep(String f_dep) {
		this.f_dep = f_dep;
	}

	public String getF_dep_cod() {
		return f_dep_cod;
	}

	public void setF_dep_cod(String f_dep_cod) {
		this.f_dep_cod = f_dep_cod;
	}

	public String getHospital_code() {
		return hospital_code;
	}

	public void setHospital_code(String hospital_code) {
		this.hospital_code = hospital_code;
	}

	public String getHospital_name() {
		return hospital_name;
	}

	public void setHospital_name(String hospital_name) {
		this.hospital_name = hospital_name;
	}

	public Date getInhzospitalat() {
		return inhzospitalat;
	}

	public void setInhzospitalat(Date inhzospitalat) {
		this.inhzospitalat = inhzospitalat;
	}

	public String getInpatient_no() {
		return inpatient_no;
	}

	public void setInpatient_no(String inpatient_no) {
		this.inpatient_no = inpatient_no;
	}

	public String getInpatient_type() {
		return inpatient_type;
	}

	public void setInpatient_type(String inpatient_type) {
		this.inpatient_type = inpatient_type;
	}

	public String getIs_comment() {
		return is_comment;
	}

	public void setIs_comment(String is_comment) {
		this.is_comment = is_comment;
	}

	public String getIs_death() {
		return is_death;
	}

	public void setIs_death(String is_death) {
		this.is_death = is_death;
	}

	public Date getOuthospitalat() {
		return outhospitalat;
	}

	public void setOuthospitalat(Date outhospitalat) {
		this.outhospitalat = outhospitalat;
	}

	public Date getPatient_birth() {
		return patient_birth;
	}

	public void setPatient_birth(Date patient_birth) {
		this.patient_birth = patient_birth;
	}

	public String getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(String patient_id) {
		this.patient_id = patient_id;
	}

	public String getPatient_name() {
		return patient_name;
	}

	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}

	public String getPatient_no() {
		return patient_no;
	}

	public void setPatient_no(String patient_no) {
		this.patient_no = patient_no;
	}

	public String getPatient_sex() {
		return patient_sex;
	}

	public void setPatient_sex(String patient_sex) {
		this.patient_sex = patient_sex;
	}

	public String getPrescribeat() {
		return prescribeat;
	}

	public void setPrescribeat(String prescribeat) {
		this.prescribeat = prescribeat;
	}

	public String getZyhm() {
		return zyhm;
	}

	public void setZyhm(String zyhm) {
		this.zyhm = zyhm;
	}

	public String getPatient_ch() {
		return patient_ch;
	}

	public void setPatient_ch(String patient_ch) {
		this.patient_ch = patient_ch;
	}

	public Long getEvaluate_id() {
		return evaluate_id;
	}

	public void setEvaluate_id(Long evaluate_id) {
		this.evaluate_id = evaluate_id;
	}

}
